<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="base-template.imp.xsl" />
		
	<xsl:output encoding="UTF-8" method="html" saxon:character-representation="native" xmlns:saxon="http://saxon.sf.net/"/>
	
	<xsl:template name="main-catalog">
		<center>
		<table>
			<tr><td align="center">
				<xsl:for-each select="//page/salon-developers/CarDeveloper">
					<xsl:choose>
						<xsl:when test="@selected">
							<a href="{@alias}"><div class="category-catalog" id="selected"><xsl:value-of select="@name" /></div></a>
						</xsl:when>
						<xsl:otherwise>
							<a href="{@alias}"><div class="category-catalog"><xsl:value-of select="@name" /></div></a>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
			</td></tr>
		</table>
		</center>
		
		<xsl:for-each select="//page/Cars/Car">
			<div class="img-catalog">
				<a href="/car/{@infoid}"><img src="/media/cars/{@id}/small.jpg" width="114" height="90" alt="{Model/Developer/@name}" border="0"/></a>
				<div>
					<xsl:value-of select="Model/Developer/@name" /><![CDATA[&nbsp;]]><xsl:value-of select="Model/@name" />
				</div>
		</div>
		</xsl:for-each>
	</xsl:template>
	
</xsl:stylesheet>
